using UnityEngine;
using UnityEngine.UI;

public class MissionManager : MonoBehaviour
{
	public Animator animator;

	public Text txtCoinCompleted;

	public Text txtInfoMission;

	public Text txtStatic;

	public Color32 colorCompleted;

	private void Awake()
	{
		TickNormal();
	}

	public void ShowMission()
	{
		base.gameObject.SetActive(value: true);
		animator.enabled = true;
		animator.SetTrigger("show");
	}

	public void HideMission()
	{
		animator.enabled = true;
		animator.SetTrigger("hide");
	}

	public void setInfoMission(string cointake, string info, string txtstatic)
	{
		txtCoinCompleted.text = cointake;
		txtInfoMission.text = info;
		txtStatic.text = txtstatic;
	}

	public void eventAimHide()
	{
		base.gameObject.SetActive(value: false);
	}

	public void disableAnim()
	{
	}

	public void showMissionOnEndGame()
	{
		base.gameObject.SetActive(value: true);
		animator.enabled = true;
		animator.SetTrigger("showend");
	}

	public void ShowAd()
	{
		animator.enabled = false;
		Object.FindObjectOfType<GUIManager>().ShowRateUsOrAd();
	}

	public void _disableAnim()
	{
		animator.enabled = false;
	}

	public void TickCompleted()
	{
		txtStatic.color = colorCompleted;
		txtInfoMission.color = colorCompleted;
	}

	public void TickNormal()
	{
		txtStatic.color = Color.white;
		txtInfoMission.color = Color.white;
	}
}
